#!/bin/bash
date_yesterday=`date -d "-1 day" "+%Y%m%d"`
date_today=`date "+%Y%m%d"`
cd ~/Data/Shenzhen
lftp ftp://nrsz:nr0755@ext.typhoon.gov.cn:21/ << EOF
cd data/Xibei/
mget Xibei-dtjt-*-$date_yesterday*.txt.gz
mget Xibei-dtjt-*-$date_today*.txt.gz
